//
//  SLProgressTableViewCell.m
//  SulitLoanDemo
//
//  Created by 虞嘉伟 on 2025/2/22.
//

#import "SLProgressTableViewCell.h"
#import <YYKit.h>
#import <Masonry.h>

@implementation SLProgressTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.backgroundColor = UIColor.clearColor;
        self.contentView.backgroundColor = UIColorHex(#F5F5F5);
        [self.contentView addSubview:self.progressView];
        [self.progressView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.equalTo(self.contentView).inset(20);
            make.height.mas_equalTo(60);
            make.top.bottom.equalTo(self.contentView).inset(20);
        }];
    }
    return self;
}

- (SLCertificationProcessItemComponent *)progressView {
    if (!_progressView) {
        _progressView = [SLCertificationProcessItemComponent new];
        _progressView.stepCount = 5;
        _progressView.currentStep = 1;
    }
    return _progressView;
}

@end
